A relation is similar to a label, but instead of having a text value it refers to another note.
While in the visual editor, set the desired name and the Target note (the note to point to). Unlike labels, relations cannot exist with a target note.
Children can inherit this relation, click the relation and check Inheritable. See Attribute Inheritance for more information.
In the Status bar, press the button to show the list of the attributes.
myRelation:
~myRelation=@ .= sign (without the @ , in this
case).~myRelation write ~myRelation(inheritable).These relations are supported and used internally by Trilium.
| Label | Description |
|---|---|
runOn*
|
See Backend Events |
template
|
note's attributes will be inherited even without a parent-child relationship, note's content and subtree will be added to instance notes if empty. See documentation for details. |
template:newNoteDefaultParent
|
set on a template note, points to the note under which notes created from the template are placed when no other location is picked; when set several times, the note is cloned into every target. See Templates. |
inherit
|
note's attributes will be inherited even without a parent-child relationship. See Templates for a similar concept. See Attribute Inheritance in the documentation. |
renderNote
|
notes of type Render Note will be rendered using a code note (HTML or script) and it is necessary to point using this relation to which note should be rendered |
widget
|
Used in the context of custom Launch Bar Widgets, to refer to the widget that will be rendered. |
shareCss
|
CSS note which will be injected into the share page. CSS note must be
in the shared sub-tree as well. Consider using shareHiddenFromTree and shareOmitDefaultCss as
well. |
shareJs
|
JavaScript note which will be injected into the share page. JS note must
be in the shared sub-tree as well. Consider using shareHiddenFromTree. |
shareHtml
|
HTML note which will be injected into the share page at locations specified
by the shareHtmlLocation label. HTML note must be in the shared
sub-tree as well. Consider using shareHiddenFromTree. |
shareTemplate
|
Embedded JavaScript note that will be used as the template for displaying
the shared note. Falls back to the default template. Consider using shareHiddenFromTree. |
shareFavicon
|
Favicon note to be set in the shared page. Typically you want to set it
to share root and make it inheritable. Favicon note must be in the shared
sub-tree as well. Consider using shareHiddenFromTree. |